﻿@model FPP.Models.Collections.UserGameRoster
@{
    ViewBag.Title = string.Format("Famous People Pool - Roster for {0} in Game {1}", Model.Player.FirstName, Model.Game.Name);
}
<h2>
    @string.Format("{0}'s roster for game: ", Model.Player.FirstName, Model.Game.Name)
    <a href="@Url.Action("Details", "Games", new { id = Model.Game.Id })">@Model.Game.Name</a></h2>
<fieldset>
    <legend>Details for @Model.Game.Name</legend>
    <div id="leftCol" class="column span-6">
        <div class="display-field">
            <img alt="@Model.Game.Name" src="http://www.famouspeoplepool.com/_assets/images/hollywood-star.jpg" style="max-width: 230px" />
        </div>
        <h1>
            @if (string.IsNullOrEmpty(Model.Player.FirstName))
            { 
                <a href="@Url.Action("Index", "Roster", new { id = Model.Game.Id })">Create Roster</a>
            }
        </h1>
        @Html.ActionLink("Back to Pools", "Index", "Games")
    </div>
    <div id="rightCol" class="column span-10 clearfix">
        <h1>@Model.Game.Name</h1>
        <div class="display-label">@Html.LabelFor(model => Model.Game.NumOfPeople)</div>
        <div class="display-field prepend-10px">@Html.Label(Model.Game.NumOfPeople)</div>
        <div class="display-label">@Html.LabelFor(model => Model.Game.DateStart)</div>
        <div class="display-field prepend-10px">@Html.Label(Model.Game.DateStart)</div>
        <div class="display-label">@Html.LabelFor(model => Model.Game.DateEnd)</div>
        <div class="display-field prepend-10px">@Html.Label(Model.Game.DateEnd)</div>
        <div class="display-label">@Html.LabelFor(model => Model.Game.WinRule)</div>
        <div class="display-field prepend-10px">@Html.Label(Model.Game.WinRule)</div>
        @{
            Html.RenderPartial("_ViewRoster", Model);
        }
    </div>
</fieldset>
